/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package robot;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
import lejos.nxt.Button;
import lejos.nxt.ButtonListener;
import javax.swing.*;
/**
 *
 * @author Fredrik
 */
public class GUI {
    
    public Server serv;
    
    public void GUI() {
        JFrame frame = new JFrame();
        frame.add(buildGUI());
        frame.pack();    
        frame.setVisible(true);
    }
    
    public JPanel buildGUI() {
        JPanel panel = new JPanel();
        JButton up = new JButton();
        panel.add(up);
        panel.addKeyListener(serv.listener);
        return panel;
    }
    
}
